rsa_public_encrypt_pkcs1
RSA PKCS#1 public key encryption using an ASN.1 DER encoded public key.
Implemented in pure Rust based on RFC8017: PKCS #1: RSA Cryptography Specifications Version 2.2, section 7.2.1 RSAES-PKCS1-v1_5.
Warning: Use at your own risk. Not extensively tested or reviewed. May contain serious bugs.
See also: rust-openssl. Example code written for rust-openssl:
let mut shared_e = vec!;
let mut token_e = vec!;
rsa.public_encrypt?;
rsa.public_encrypt?;
could be rewritten using this crate as follows:
let shared_e = encrypt?;
let token_e = encrypt?;